package org.mozhu.mboot.admin.config.session;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.session.jdbc.config.annotation.web.http.EnableJdbcHttpSession;

@Configuration
@ConditionalOnProperty(name = "spring.session.store-type", havingValue = "jdbc")
@EnableJdbcHttpSession(tableName = "SYS_SPRING_SESSION")
public class JDBCSessionConfiguration {

    @Bean
    public String value1() {
        return "xxx";
    }
}
